window.tywx || (window.tywx = {}), tywx.StateInfo = {
    debugMode: !1,
    networkConnected: !0,
    networkType: "none",
    isOnForeground: !0,
    VERSION: "1.0.33"
}, tywx.SystemInfo = {
    clientId: "H5_5.1200_weixin.weixin.0-hall201.weixin.sc",
    intClientId: 23805,
    cloudId: 17,
    version: 2.25,
    webSocketUrl: "",
    loginUrl: "",
    shareManagerUrl: "https://market.touch4.me/",
    deviceId: "wechatGame",
    wxAppId: "wxa9b801abd43333d9",
    appId: 9999,
    gameId: 201,
    hall_version: "hall51",
    cdnPath: "",
    remotePackPath: "remote_res/res.zip",
    biLogServer: "https://cbi.touch4.me/api/bilog5/text",
    errorLogServer: "https://clienterr.touch4.me/api/bilog5/clientlog",
    tywxVersion: 1.2,
    openLocalRecord: !0,
    wxSystemInfo: null
}, 1 == tywx.StateInfo.debugMode ? (tywx.SystemInfo.webSocketUrl = "wss://szfzwss.nalrer.cn/", 
tywx.SystemInfo.loginUrl = "https://szfz.nalrer.cn/") : (tywx.SystemInfo.webSocketUrl = "wss://szhfwss.nalrer.cn/", 
tywx.SystemInfo.loginUrl = "https://openszhf.nalrer.cn/"), tywx.SystemInfo.cdnPath = "https://szh5.nalrer.cn/szmahjong/WXGames/SichuanMJ/res" + tywx.StateInfo.VERSION, 
tywx.UserInfo = {
    userId: 0,
    userName: "TuWechatGame",
    userPic: "",
    authorCode: "",
    systemType: 0,
    wechatType: "6.6.1",
    model: "未知设备",
    system: "iOS 10.0.1",
    loc: "",
    scene_id: "",
    scene_param: "",
    invite_id: 0,
    wxgame_session_key: "",
    isCreate: 0,
    isiPhone: !1
}, tywx.LOGD = function(a, b) {
    if (tywx.StateInfo.debugMode) {
        var c = (a = a || "tywx") + " : " + b;
        console.log(c);
    }
}, tywx.LOGE = function(a, b) {
    if (tywx.StateInfo.debugMode) {
        var c = (a = a || "tywx") + " : " + b;
        console.error(c);
    }
}, tywx.IsWechatPlatform = function() {
    try {
        return wx, wx.showShareMenu(), !0;
    } catch (a) {
        return !1;
    }
}, function() {
    function b(b, f) {
        b[f >> 5] |= 128 << f % 32, b[14 + (f + 64 >>> 9 << 4)] = f;
        for (var e = 1732584193, j = -271733879, m = -1732584194, n = 271733878, o = 0; o < b.length; o += 16) {
            var h = e, p = j, l = m, q = n;
            j = i(j = i(j = i(j = i(j = c(j = c(j = c(j = c(j = a(j = a(j = a(j = a(j = g(j = g(j = g(j = g(j, m = g(m, n = g(n, e = g(e, j, m, n, b[o + 0], 7, -680876936), j, m, b[o + 1], 12, -389564586), e, j, b[o + 2], 17, 606105819), n, e, b[o + 3], 22, -1044525330), m = g(m, n = g(n, e = g(e, j, m, n, b[o + 4], 7, -176418897), j, m, b[o + 5], 12, 1200080426), e, j, b[o + 6], 17, -1473231341), n, e, b[o + 7], 22, -45705983), m = g(m, n = g(n, e = g(e, j, m, n, b[o + 8], 7, 1770035416), j, m, b[o + 9], 12, -1958414417), e, j, b[o + 10], 17, -42063), n, e, b[o + 11], 22, -1990404162), m = g(m, n = g(n, e = g(e, j, m, n, b[o + 12], 7, 1804603682), j, m, b[o + 13], 12, -40341101), e, j, b[o + 14], 17, -1502002290), n, e, b[o + 15], 22, 1236535329), m = a(m, n = a(n, e = a(e, j, m, n, b[o + 1], 5, -165796510), j, m, b[o + 6], 9, -1069501632), e, j, b[o + 11], 14, 643717713), n, e, b[o + 0], 20, -373897302), m = a(m, n = a(n, e = a(e, j, m, n, b[o + 5], 5, -701558691), j, m, b[o + 10], 9, 38016083), e, j, b[o + 15], 14, -660478335), n, e, b[o + 4], 20, -405537848), m = a(m, n = a(n, e = a(e, j, m, n, b[o + 9], 5, 568446438), j, m, b[o + 14], 9, -1019803690), e, j, b[o + 3], 14, -187363961), n, e, b[o + 8], 20, 1163531501), m = a(m, n = a(n, e = a(e, j, m, n, b[o + 13], 5, -1444681467), j, m, b[o + 2], 9, -51403784), e, j, b[o + 7], 14, 1735328473), n, e, b[o + 12], 20, -1926607734), m = c(m, n = c(n, e = c(e, j, m, n, b[o + 5], 4, -378558), j, m, b[o + 8], 11, -2022574463), e, j, b[o + 11], 16, 1839030562), n, e, b[o + 14], 23, -35309556), m = c(m, n = c(n, e = c(e, j, m, n, b[o + 1], 4, -1530992060), j, m, b[o + 4], 11, 1272893353), e, j, b[o + 7], 16, -155497632), n, e, b[o + 10], 23, -1094730640), m = c(m, n = c(n, e = c(e, j, m, n, b[o + 13], 4, 681279174), j, m, b[o + 0], 11, -358537222), e, j, b[o + 3], 16, -722521979), n, e, b[o + 6], 23, 76029189), m = c(m, n = c(n, e = c(e, j, m, n, b[o + 9], 4, -640364487), j, m, b[o + 12], 11, -421815835), e, j, b[o + 15], 16, 530742520), n, e, b[o + 2], 23, -995338651), m = i(m, n = i(n, e = i(e, j, m, n, b[o + 0], 6, -198630844), j, m, b[o + 7], 10, 1126891415), e, j, b[o + 14], 15, -1416354905), n, e, b[o + 5], 21, -57434055), m = i(m, n = i(n, e = i(e, j, m, n, b[o + 12], 6, 1700485571), j, m, b[o + 3], 10, -1894986606), e, j, b[o + 10], 15, -1051523), n, e, b[o + 1], 21, -2054922799), m = i(m, n = i(n, e = i(e, j, m, n, b[o + 8], 6, 1873313359), j, m, b[o + 15], 10, -30611744), e, j, b[o + 6], 15, -1560198380), n, e, b[o + 13], 21, 1309151649), m = i(m, n = i(n, e = i(e, j, m, n, b[o + 4], 6, -145523070), j, m, b[o + 11], 10, -1120210379), e, j, b[o + 2], 15, 718787259), n, e, b[o + 9], 21, -343485551), 
            e = k(e, h), j = k(j, p), m = k(m, l), n = k(n, q);
        }
        return [ e, j, m, n ];
    }
    function d(b, c, d, e, f, g) {
        return k(function(a, b) {
            return a << b | a >>> 32 - b;
        }(k(k(c, b), k(e, g)), f), d);
    }
    function g(b, f, g, h, j, k, c) {
        return d(f & g | ~f & h, b, f, j, k, c);
    }
    function a(b, f, e, g, h, a, j) {
        return d(f & g | e & ~g, b, f, h, a, j);
    }
    function c(b, f, e, g, h, a, c) {
        return d(f ^ e ^ g, b, f, h, a, c);
    }
    function i(b, f, e, g, h, a, c) {
        return d(e ^ (f | ~g), b, f, h, a, c);
    }
    function j(d, g) {
        var e = f(d);
        16 < e.length && (e = b(e, d.length * q));
        for (var h = Array(16), a = Array(16), c = 0; 16 > c; c++) h[c] = 909522486 ^ e[c], 
        a[c] = 1549556828 ^ e[c];
        var i = b(h.concat(f(g)), 512 + g.length * q);
        return b(a.concat(i), 640);
    }
    function k(a, b) {
        var c = (65535 & a) + (65535 & b);
        return (a >> 16) + (b >> 16) + (c >> 16) << 16 | 65535 & c;
    }
    function f(a) {
        for (var b = [], c = 0; c < a.length * q; c += q) b[c >> 5] |= (a.charCodeAt(c / q) & (1 << q) - 1) << c % 32;
        return b;
    }
    function h(a) {
        for (var b = "", c = 0; c < 32 * a.length; c += q) b += String.fromCharCode(a[c >> 5] >>> c % 32 & (1 << q) - 1);
        return b;
    }
    function m(a) {
        for (var b = "0123456789abcdef", c = "", d = 0; d < 4 * a.length; d++) c += b.charAt(15 & a[d >> 2] >> 8 * (d % 4) + 4) + b.charAt(15 & a[d >> 2] >> 8 * (d % 4));
        return c;
    }
    function l(b) {
        for (var c = "", d = 0; d < 4 * b.length; d += 3) for (var e = (255 & b[d >> 2] >> 8 * (d % 4)) << 16 | (255 & b[d + 1 >> 2] >> 8 * ((d + 1) % 4)) << 8 | 255 & b[d + 2 >> 2] >> 8 * ((d + 2) % 4), f = 0; 4 > f; f++) c += 8 * d + 6 * f > 32 * b.length ? p : "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63 & e >> 6 * (3 - f));
        return c;
    }
    var o = 0, p = "", q = 8;
    tywx.hex_md5 = function(a) {
        return m(b(f(a), a.length * q));
    }, tywx.b64_md5 = function(a) {
        return l(b(f(a), a.length * q));
    }, tywx.str_md5 = function(a) {
        return h(b(f(a), a.length * q));
    }, tywx.hex_hmac_md5 = function(a, b) {
        return m(j(a, b));
    }, tywx.b64_hmac_md5 = function(a, b) {
        return l(j(a, b));
    }, tywx.str_hmac_md5 = function(a, b) {
        return h(j(a, b));
    };
}();